package com.example.testproject.adapter

import android.util.Log
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.testproject.R

/**
 *
 * @ClassName: TextAdapter
 * @Author: android 超级兵
 * @CreateDate: 10/28/21$ 2:53 PM$
 * TODO
 */
class TextAdapter(data: List<String>) :
    BaseQuickAdapter<String, BaseViewHolder>(R.layout.text_layout, data) {
    override fun convert(helper: BaseViewHolder, item: String) {
        helper.setText(
            R.id.textView,
            String.format("(%s).%s", (helper.adapterPosition.toChar() + 65).toString(), item)
        )
    }
}